package 实验四4;

public class WeatherForecast {
    public static void main(String[] args) {
        Weather weatherBeijing = new Weather();

        System.out.print("\n今天白天:");
        weatherBeijing.setState(new CloudyDayState());
        weatherBeijing.show();

        System.out.print("\n今天夜间:");
        weatherBeijing.setState(new LightRainState());
        weatherBeijing.show();

        System.out.print("转:");
        weatherBeijing.setState(new HeavyRainState());
        weatherBeijing.show();

        System.out.print("\n明天白天:");
        weatherBeijing.setState(new LightRainState());
        weatherBeijing.show();

        System.out.print("\n明天夜间:");
        weatherBeijing.setState(new CloudyDayState());
        weatherBeijing.show();

    }
}
